#pragma once

#include <ice/ice.h>

#pragma comment(lib , "iced.lib") 
#pragma comment(lib , "iceutild.lib")

#include "DBProtocal.h"

#include "DBLoginCL.h"

using namespace DBServerProtocal;

class NetManagerCL
{
public:
	NetManagerCL(void);
	virtual ~NetManagerCL(void);

public:
	static NetManagerCL & GetInstance()
	{
		static NetManagerCL instance ;
		return instance ;
	}

public:
	void Initial() ;
	void Destroy() ;

    Ice::ObjectAdapterPtr  GetAdapter() ;
	Ice::CommunicatorPtr   GetIce() ;

protected:
	Ice::CommunicatorPtr   m_pIce ;
	Ice::ObjectAdapterPtr  m_pAdapter ;
	DBLoginPtr             m_pLogin   ;
};
